package com.ghy.service;

import com.ghy.dto.*;

import com.ghy.entity.Seckill;
import com.ghy.vo.SeckillDetailSimpleListVO;
import com.ghy.vo.SeckillSimpleListVO;
import com.mybatisflex.core.paginate.Page;
import com.mybatisflex.core.service.IService;
import com.ghy.entity.SeckillDetail;

import java.util.List;

/**
 * 秒杀明细表 服务层。
 *
 * @author ghy
 * @since 2024-12-22
 */
public interface SeckillDetailService extends IService<SeckillDetail> {

    boolean insert(SeckillDetailInsertDTO dto);
    SeckillDetail select(Long id);
    boolean update(SeckillDetailUpdateDTO dto);
    boolean delete(Long id);
    boolean deleteBatch(List<Long> ids);
    List<SeckillDetailSimpleListVO> simpleList();
    Page<SeckillDetail> page(SeckillDetailPageDTO dto);

}
